<div style="width: 100%;height: 250px;background: gray;"></div>
<table width="100%">
  <tr>
    <td width="25%" valign="top">
        <div style="line-height: 120px; text-align: center;border: 1px solid black;">
            <a href="<?php echo url_for('@delivery') ?>">DELIVERY</a>
        </div>
        <div style="line-height: 120px; text-align: center;border: 1px solid black;">
            <a href="http://www.google.com/" target="_blank">Anunciante</a>
        </div>
        <div style="line-height: 120px; text-align: center;border: 1px solid black;">
            <a href="http://www.google.com/">Anunciante</a>
        </div>
    </td>
    <td width="40%" valign="top">
        <h3>BLOGS (slider)</h3>
        <table width="100%">
          <tr>
            <td>
                <p style="text-align: justify;margin: 10px;">
                    <b>Lorem ipsum dolor sit amet</b><br />Consectetur adipiscing elit. Fusce sit amet dolor nibh, id vulputate nisl. Quisque orci erat, consectetur sit amet mollis sed, consectetur ac tellus. Nulla nec tortor nunc. Phasellus ligula neque, lobortis nec egestas a, commodo non ligula.
                </p>
                <div style="text-align: right;">
                    <a href="<?php echo url_for('@blogs_detail?id=1&slug=slug-slug') ?>">Leer completo</a>
                </div>
            </td>
            <td><?php echo image_tag('blank.jpg','size=100x100') ?></td>
          </tr>
        </table>
          <hr />
        <h3>NOVEDADES Y RECOMENDACIONES (slider)</h3>
        <table width="100%">
          <tr>
            <td>
                <p style="text-align: justify;margin: 10px;">
                    <b>Lorem ipsum dolor sit amet</b><br />Consectetur adipiscing elit. Fusce sit amet dolor nibh, id vulputate nisl. Quisque orci erat, consectetur sit amet mollis sed, consectetur ac tellus. Nulla nec tortor nunc. Phasellus ligula neque, lobortis nec egestas a, commodo non ligula.
                </p>
                <div style="text-align: right;">
                    <a href="<?php echo url_for('@news_detail?id=1&slug='.'slug-slug') ?>">Ver completo</a>
                </div>
            </td>
            <td><?php echo image_tag('blank.jpg','size=100x100') ?></td>
          </tr>
        </table>
          <hr />
        <h3>VIDEO</h3>
        <table width="100%">
          <tr>
            <td>
                <a href="http://www.youtube.com/watch?v=4n8g46z3FME" id="fancybox_youtube">
                    <img id="youtube_img"/>
                </a>
            </td>
            <td>
                <p style="text-align: justify;margin: 10px;">
                    <b>Titulo</b><br />Consectetur adipiscing elit. Fusce sit amet dolor nibh, id vulputate nisl.
                </p>
                <p style="text-align: justify;margin: 10px;">
                    <b>Descripcion</b><br />Quisque orci erat, consectetur sit amet mollis sed, consectetur ac tellus. Nulla nec tortor nunc. Phasellus ligula neque, lobortis nec egestas a, commodo non ligula.
                </p>
            </td>
          </tr>
        </table>
          <hr />
    </td>
    <td width="35%" valign="top">
      <?php if(!$sf_user->isAuthenticated()){ ?>
        <form action="<?php echo url_for('@login') ?>" method="post">
          <h1>Bievenidos a Farmacia Universal</h1>
            <div>Usuario</div>
            <div><input type="text"/></div>
            <div>Contraseña</div>
            <div><input type="password"/></div>
            <table width="100%" cellpadding="5" cellspacing="5">
              <tr>
                <td width="50%" align="center">
                    <a href="<?php echo url_for('@register'); ?>">Registrarse</a>
                </td>
                <td width="50%" align="center">
                    <input type="submit" value="Ingresar" />
                </td>
              </tr>
            </table>
          </form>
        <?php }else{ ?>
          <div style="width: 100%; height: 180px;">
            <a href="<?php echo url_for('@profile') ?>">Mi perfil</a>
              <br />
            <a href="<?php echo url_for('@logout') ?>">Cerrar sesión</a>
          </div>
        <?php } ?>
        <div style="line-height: 120px; text-align: center;border: 1px solid black;">
            <a href="<?php echo url_for('@magazines') ?>">Revistas PDF THANI</a>
        </div>
    </td>
  </tr>
</table>
<script type="text/javascript">
$(document).ready(function(){
    $("#youtube_img").attr("src", getScreen('http://www.youtube.com/watch?v=4n8g46z3FME','small'));
});
</script>